<?php

namespace Acme\DemoBundle\Entity;

use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;

/**
 * Nhom
 *
 * @ORM\Table(name="nhom")
 * @ORM\Entity(repositoryClass="Acme\DemoBundle\Repository\NhomRepository")
 */
class Nhom
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="bigint", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="ten", type="string", length=100, nullable=true)
     */
    private $ten;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="created", type="datetime", nullable=true)
     */
    private $created;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="updated", type="datetime", nullable=true)
     */
    private $updated;

    /**
     * @var \DateTime
     *
     * @ORM\Column(name="deleted", type="datetime", nullable=true)
     */
    private $deleted;

    /**
     * @var string
     *
     * @ORM\Column(name="ma", type="string", length=45, nullable=true)
     */
    private $ma;
    
    /**
     * Set ma
     *
     * @param string $ma
     * @return Phongban
     */
    public function setMa($ma)
    {
    	$this->ma = $ma;
    
    	return $this;
    }
    
    /**
     * Get ma
     *
     * @return string
     */
    public function getMa()
    {
    	return $this->ma;
    }
    
    /**
     * @ORM\OneToMany(targetEntity="Phongban", mappedBy="nhomid")
     */
    private $phongban;
    
    public function __construct()
    {
    	$this->phongban = new ArrayCollection();
    }
    
    public function setPhongban(\Acme\DemoBundle\Entity\Phongban $phongban = null)
    {
    	$this->phongban = $phongban;
    
    	return $this;
    }
    public function getPhongban()
    {
    	return $this->phongban;
    }
    
    
    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set ten
     *
     * @param string $ten
     * @return Nhom
     */
    public function setTen($ten)
    {
        $this->ten = $ten;
    
        return $this;
    }

    /**
     * Get ten
     *
     * @return string 
     */
    public function getTen()
    {
        return $this->ten;
    }

    /**
     * Set created
     *
     * @param \DateTime $created
     * @return Nhom
     */
    public function setCreated($created)
    {
        $this->created = $created;
    
        return $this;
    }

    /**
     * Get created
     *
     * @return \DateTime 
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set updated
     *
     * @param \DateTime $updated
     * @return Nhom
     */
    public function setUpdated($updated)
    {
        $this->updated = $updated;
    
        return $this;
    }

    /**
     * Get updated
     *
     * @return \DateTime 
     */
    public function getUpdated()
    {
        return $this->updated;
    }

    /**
     * Set deleted
     *
     * @param \DateTime $deleted
     * @return Nhom
     */
    public function setDeleted($deleted)
    {
        $this->deleted = $deleted;
    
        return $this;
    }

    /**
     * Get deleted
     *
     * @return \DateTime 
     */
    public function getDeleted()
    {
        return $this->deleted;
    }
}